import java.util.List;

public class PromotionOrder {
    List<OrderItem> orderItems;
    PromotionResult bestPromotionResult;
    double amount;

    public PromotionOrder(List<OrderItem> orderItems, PromotionResult bestPromotion, Double totalAmount) {
        this.orderItems = orderItems;
        this.bestPromotionResult = bestPromotion;
        this.amount = totalAmount;
    }

    public static PromotionOrder build(List<OrderItem> orderItems, PromotionResult bestPromotion, Double totalAmount) {
        return new PromotionOrder(orderItems, bestPromotion, totalAmount);
    }
}
